package cn.wolfcode.wolf2w.domain;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;


@Document("visit")
@ToString
public class Visit extends BaseDomain{


    private String nickname;  //用户昵称

    private String woId;    //关联wo用户的id
    private Integer totalView = 0;  //总访问量
    @Transient
    private Integer todayView = 0;


//和访客对象集合
    private List<UserInfo> visitors=new ArrayList<>();

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname=nickname;
    }

    public String getWoId() {
        return woId;
    }

    public void setWoId(String woId) {
        this.woId=woId;
    }

    public Integer getTotalView() {
        return totalView;
    }

    public void setTotalView(Integer totalView) {
        this.totalView=totalView;
    }

    public Integer getTodayView() {
        return todayView;
    }

    public void setTodayView(Integer todayView) {
        this.todayView=todayView;
    }

    public List<UserInfo> getVisitors() {
        return visitors;
    }

    public void setVisitors(List<UserInfo> visitors) {
        this.visitors=visitors;
    }
}
